package com.euq.node;

public class ZTreeNode {
    private Long id;
    private Long pId;
    private String name;
    private Boolean open;
    private Boolean checked;
    private Object nodeData;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getpId() {
        return pId;
    }

    public void setpId(Long pId) {
        this.pId = pId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public Boolean getIsOpen(){
        return open;
    }
    public void setIsOpen(Boolean isOpen){
        this.open = open;
    }
    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Object getNodeData() {
        return nodeData;
    }

    public void setNodeData(Object nodeData) {
        this.nodeData = nodeData;
    }

    public static ZTreeNode createParent(){
        ZTreeNode zTreeNode = new ZTreeNode();
        zTreeNode.setId(0L);
        zTreeNode.setpId(0L);
        zTreeNode.setOpen(true);
        zTreeNode.setChecked(true);
        zTreeNode.setName("顶级");
        return zTreeNode;
    }
}
